<?php if(isset( $checkAdmin ) || $countUrls) : ?>
	<div class="u_cat">
		<div class="u_cat_head_strip"></div>
		<div class="u_cat_head">
			<a href="<?php echo Yii::app()->createUrl('groups/urls', array('group'=>$group)); ?>">
				<em>Ссылки</em><span><?php echo CHtml::encode($countUrls); ?></span>
			</a>
		</div>
		<div class="u_cont_list">
			<?php if($countUrls) : ?>
				<?php foreach ($urls as $key => $url) : ?>
					<div class="u_cont">
						<a href="<?php echo $url->url; ?>" class="u_cont_pic" target="_blank">
							<?php 
								echo $this->material_image(
									$url->id, 
									$url->avatar, 
									'40', 
									'groups/' . $group
								); 
							?>
						</a>
						<div class="u_cont_r">
							<?php 
								echo CHtml::link( 
									CHtml::encode($url->name),
									$url->url,
									array(
										'class' => 'u_cont_h',
										'target'=>'_blank'
									)
								);
							?>
						</div>
						
					</div>
				<?php endforeach; ?>
			<?php else : ?>
			<div class="u_cont_list">
				<div class="u_cont">
					<div class="u_cont_r_empty ajaxLinks">
						В сообществе ещё нет ссылок.
						<?php if(isset( $checkAdmin )) : ?>
							<p><a href="<?php echo Yii::app()->createUrl('groups/createUrls',array('group'=>$group));?>" class="u_cont_h2_discussion">
								Добавить 
							</a></p>
						<?php endif ?>
					</div>
				</div>
			</div>
			<?php endif; ?>
		</div>
	</div>
<?php endif; ?>